﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CRM
{
    public partial class Top : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Common.CheckMes.CheckState("User_ID", "Index.aspx", "用户登录信息丢失，请重新登录...");
        }
        protected void LBQuit_Click(object sender, EventArgs e)
        {
            Common.SetMes.RemoveAllSession();                    //清除所有的Session变量
            Common.SetMes.CreatCookies("User_ID", -1, "", "");   //清除用户Id值
            Common.SetMes.CreatCookies("Power_Mes", -1, "", ""); //清除角色权限列表字符串
            Common.SetMes.CreatCookies("User_Name", -1, "", ""); //清除用户名
            Common.SetMes.CreatCookies("Power_Name", -1, "", "");//清除角色名
            Common.MessageBox.RefreshPage(Page, "top", "Index.aspx", "throw");//跳转到Index.aspx页面
        }
    }
}
